<?php
// specifies an LDAP authentication source
$C = array();
//General Settings
$C{'label'} = "MyLdapServer";
$C{'type'} = "ldap";// "ldaps" for Secure ldap
$C{'ldap_provider'} = "ms-active-directory";//Only Microsoft Active Directory Currently Supported "ms-active-directory"
//Administrator Settings
$admin = array();
$admin{'user'} = "administrator";
$admin{'pass'} = "********";
$admin{'dn'} = "DC=yoururl,DC=com"
$admin{'fqdn'} = "yoururl.com";
$C{'admin'} = $admin;
//Server Settings
$server = array();
$server{'host'} = "ldap://192.168.1.2";// "ldaps:192.168.1.2" for Secure Ldap
$server{'port'} = "389";// "686" for Secure Ldap
$server{'tls'} = 0;// "1" for Secure Ldap
$C{'server'} = $server;
//User Authentication Settings
$auth = array();
$auth{'dn'} = "DC=yoururl,DC=com";
$auth{'fqdn'} = "yoururl.com";
$auth{'username_label'} = "samaccountname";//Active Directory = "samaccountname"
$C{'auth'} = $auth;
//LDAP -> safe-harbour Group Mappings
$maps = array();
$maps[] = array("dn" => "Administrators","group" => 1); // Where '1' is the safe-harbour admin group
$maps[] = array("dn" => "Users","group" => 2); // Where '2' is the safe-harbour users group
$C{'maps'} = $maps;
?>
